﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebUI.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>:: ADLER ::</title>
    <link type="text/css" href="Content/Welcome.css" rel="stylesheet" media="screen"/>
    <script type="text/javascript" src="Content/jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
        function changeimgmain(num) {
            if (num == '0') {
                document.getElementById('imgBanner').src = 'Uploads/Banners/default_banner1.png';
            }
            else if (num == '1') {
                document.getElementById('imgBanner').src = 'Uploads/Banners/default_banner1_hover.png';
            }
        }

        var count = 1;
        function moveImg() {
            count = count + 1;
            if (count == 3) {
                $("#div_banner2").animate({ left: "+=50" }, 4000);
            }
            if (count == 8) {
                $("#div_banner3").animate({ left: "-=50" }, 4000);
            }
            if (count == 13) {
                $("#div_banner2").animate({ left: "-=50" }, 4000);
            }
            if (count == 18) {
                $("#div_banner3").animate({ left: "+=50" }, 4000);
            }
            setTimeout("moveImg()", 1000);
        }

        $(document).ready(function () {
            moveImg();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="div_main">
        <%--<div class="divtrans" id="divtrans"></div>--%>
        <div class="div_banner1" id="div_banner1"><img src="Uploads/Banners/default_banner1.png" alt="" id="imgBanner" onmouseover="changeimgmain('1');" onmouseout="changeimgmain('0');" /></div>
        <div class="div_banner2" id="div_banner2"><img src="Uploads/Banners/default_banner2.jpg" alt="" /></div>
        <div class="div_banner3" id="div_banner3"><img src="Uploads/Banners/default_banner3.jpg" alt="" /></div>

        <div class="div_logo"><img src="Images/adler_logo.png" alt="" /></div>

        <div class="div_language">
            <div class="maintext">Please choose your language</div>
            <div class="dropdown">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <div class="div_border_dropdown">
                    <asp:DropDownList ID="ddlLanguage" CssClass="cssdropdown" runat="server" 
                        AutoPostBack="true" onselectedindexchanged="ddlLanguage_SelectedIndexChanged">
                        <asp:ListItem Value="0">Default</asp:ListItem>
                        <asp:ListItem Value="2">English</asp:ListItem>
                        <asp:ListItem Value="1">Việt Nam</asp:ListItem>
                    </asp:DropDownList>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
    </form>
</body>
</html>

